<template>
	<div>
		<!-- 一级菜单下面所拥有的二级菜单 -->
		<el-aside>
			<SideMenu :items="items"></SideMenu>
		</el-aside>

		<!-- 以及二级菜单所对应的页面 -->
		<el-main>
			<router-view></router-view>
		</el-main>
	</div>
</template>

<script>
import SideMenu from '../../components/nav/leftNav'
export default {
	components: {
		SideMenu,
	},
	data() {
		return {
			items: [
				{
					index: 'test2-01',
					title: '二级菜单1-1',
				},
				{
					index: 'test2-02',
					title: '二级菜单1-2',
				},
				{
					index: 'test2-03',
					title: '二级菜单1-3',
				},
			],
		}
	},
}
</script>

<style scoped></style>
